﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WebApplication1.Infrastructure.Migrations
{
    /// <inheritdoc />
    public partial class InitialCreate : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "shequ",
                columns: table => new
                {
                    shequid = table.Column<ushort>(type: "INTEGER", nullable: false)
                        .Annotation("Sqlite:Autoincrement", true),
                    mingcheng = table.Column<string>(type: "TEXT", maxLength: 20, nullable: false),
                    dianhua = table.Column<string>(type: "TEXT", maxLength: 20, nullable: true),
                    shuji = table.Column<string>(type: "TEXT", maxLength: 10, nullable: true),
                    shujidianhua = table.Column<string>(type: "TEXT", maxLength: 20, nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_shequ", x => x.shequid);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "shequ");
        }
    }
}
